package com.uxwine.view;

import android.os.SystemClock;

public class DoubleClick
{
	int count = 0;
	long time = 0;
	
	public synchronized boolean trace()
	{
		if(count == 0)
		{
			count = 1;
			time = System.currentTimeMillis();
			return false;
		}
		
		if(count == 1)
		{
			if(System.currentTimeMillis() - time <= 300)
			{
				count = 0;
				return true;
			}
			time = System.currentTimeMillis();
		}
		return false;
	}
}
